<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibTools: H:/project/LibTools/src/file/FileTools.cpp 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibTools
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.16 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','搜索');
});
/* @license-end */</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_f17c642dae9e225ab953fe9c6da2e34a.html">file</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">函数</a>  </div>
  <div class="headertitle">
<div class="title">FileTools.cpp 文件参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;stdio.h&gt;</code><br />
<code>#include &lt;algorithm&gt;</code><br />
<code>#include &lt;assert.h&gt;</code><br />
<code>#include &quot;<a class="el" href="_share_api_8h_source.html">../tools/ShareApi.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_file_tools_8h_source.html">FileTools.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_shared_ptr_8h_source.html">../thread/SharedPtr.h</a>&quot;</code><br />
</div>
<p><a href="_file_tools_8cpp_source.html">浏览源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:abaea96d345c10cbf7383204c02924c61"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a201ce692c9dca6599e5c12d00167419b">DEF_BEG_LIBTOOLS</a> <a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_file_tools_8cpp.html#abaea96d345c10cbf7383204c02924c61">txt_code</a> (const <a class="el" href="tools_8h.html#a65c91f8d7af3c67b8a21e089fdddd0fe">TCHAR</a> *filename)</td></tr>
<tr class="memdesc:abaea96d345c10cbf7383204c02924c61"><td class="mdescLeft">&#160;</td><td class="mdescRight">判定文本文件的编码方式  <a href="_file_tools_8cpp.html#abaea96d345c10cbf7383204c02924c61">更多...</a><br /></td></tr>
<tr class="separator:abaea96d345c10cbf7383204c02924c61"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac466c2c83e8a6b7daf322c2ad4590e0f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_file_tools_8cpp.html#ac466c2c83e8a6b7daf322c2ad4590e0f">CreateMultiDir</a> (const <a class="el" href="tools_8h.html#a65c91f8d7af3c67b8a21e089fdddd0fe">TCHAR</a> *szPath)</td></tr>
<tr class="memdesc:ac466c2c83e8a6b7daf322c2ad4590e0f"><td class="mdescLeft">&#160;</td><td class="mdescRight">创建多级目录  <a href="_file_tools_8cpp.html#ac466c2c83e8a6b7daf322c2ad4590e0f">更多...</a><br /></td></tr>
<tr class="separator:ac466c2c83e8a6b7daf322c2ad4590e0f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3c04dd3001c03a53ff0af77a61ac93f4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_file_tools_8cpp.html#a3c04dd3001c03a53ff0af77a61ac93f4">PathRemoveBackslash</a> (<a class="el" href="tools_8h.html#a65c91f8d7af3c67b8a21e089fdddd0fe">TCHAR</a> *sPath)</td></tr>
<tr class="memdesc:a3c04dd3001c03a53ff0af77a61ac93f4"><td class="mdescLeft">&#160;</td><td class="mdescRight">去除路径最后的反斜杠  <a href="_file_tools_8cpp.html#a3c04dd3001c03a53ff0af77a61ac93f4">更多...</a><br /></td></tr>
<tr class="separator:a3c04dd3001c03a53ff0af77a61ac93f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">函数说明</h2>
<a id="ac466c2c83e8a6b7daf322c2ad4590e0f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac466c2c83e8a6b7daf322c2ad4590e0f">&#9670;&nbsp;</a></span>CreateMultiDir()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> bool CreateMultiDir </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="tools_8h.html#a65c91f8d7af3c67b8a21e089fdddd0fe">TCHAR</a> *&#160;</td>
          <td class="paramname"><em>szPath</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>创建多级目录 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">szPath</td><td>多级目录路径 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功返回true，失败返回false </dd></dl>
<dl class="section remark"><dt>备注</dt><dd>下滑线尽量使用 '/' </dd></dl>

<p class="definition">在文件 <a class="el" href="_file_tools_8cpp_source.html">FileTools.cpp</a> 第 <a class="el" href="_file_tools_8cpp_source.html#l00050">50</a> 行定义.</p>

</div>
</div>
<a id="a3c04dd3001c03a53ff0af77a61ac93f4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3c04dd3001c03a53ff0af77a61ac93f4">&#9670;&nbsp;</a></span>PathRemoveBackslash()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void PathRemoveBackslash </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tools_8h.html#a65c91f8d7af3c67b8a21e089fdddd0fe">TCHAR</a> *&#160;</td>
          <td class="paramname"><em>sPath</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>去除路径最后的反斜杠 </p>

<p class="definition">在文件 <a class="el" href="_file_tools_8cpp_source.html">FileTools.cpp</a> 第 <a class="el" href="_file_tools_8cpp_source.html#l00099">99</a> 行定义.</p>

</div>
</div>
<a id="abaea96d345c10cbf7383204c02924c61"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abaea96d345c10cbf7383204c02924c61">&#9670;&nbsp;</a></span>txt_code()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#a201ce692c9dca6599e5c12d00167419b">DEF_BEG_LIBTOOLS</a> <a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a> txt_code </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="tools_8h.html#a65c91f8d7af3c67b8a21e089fdddd0fe">TCHAR</a> *&#160;</td>
          <td class="paramname"><em>filename</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>判定文本文件的编码方式 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">filename</td><td>txt文件名称 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功返回上诉定义的宏，失败返回-1 </dd></dl>

<p class="definition">在文件 <a class="el" href="_file_tools_8cpp_source.html">FileTools.cpp</a> 第 <a class="el" href="_file_tools_8cpp_source.html#l00010">10</a> 行定义.</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>
